// --------银行相关-----------------------
import fetch from '../config/fetch'

/**
 * 获取所有银行
 */
export const getBank = () => fetch({
  url: '/bank/v1',
  method: "get",
  data: {},
});

/**
 * 获取某个城市下的所有支行
 */
export const getBranch = (bankCityId) => fetch({
  url: '/bank/v1/' + bankCityId + '/branch',
  method: "get",
  data: {},
});

/**
 * 根据银行查询所有省份
 */
export const getProvince = (bankId) => fetch({
  url: '/bank/v1/' + bankId + '/province',
  method: "get",
  data: {},
});

/**
 * 获取所有银行
 */
export const getCity = (bankProvinceId) => fetch({
  url: '/bank/v1/' + bankProvinceId + '/city',
  method: "get",
  data: {},
});
